﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace kunukn.RecommendationEngine.AreaRecommendation.Code.Helpers
{
    public static class Extensions
    {
        public static string ToStringList(this int[] arr)
        {
            var sb = new StringBuilder("[");
            int i = 0;
            foreach (var a in arr)
            {
                sb.Append(a);
                if (++i != arr.Length)
                {
                    sb.Append(", ");
                }                    
            }
            sb.Append("]");
            return sb.ToString();
        }

    }
}